package com.leio.learn;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.leio.R;

public class ShowCountResultActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.countresultlayout);
		Bundle bundle = getIntent().getExtras();
		Long d1 = Long.parseLong(bundle.getString("d1"));
		Long d2 = Long.parseLong(bundle.getString("d2"));

		Long result = d1 + d2;
		TextView tv = (TextView) findViewById(R.id.countresult);
		tv.setText("result = " + result);
	}

}
